package org.grow.sha.service;

import org.grow.sha.entity.Account;
import org.grow.sha.serviceAop.BackMenuException;
import org.grow.sha.serviceAop.Tab;
import org.grow.sha.tool.RobotEx;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.awt.*;
import java.util.concurrent.TimeUnit;

@Component
public class LoginService {
    @Autowired
    private RobotEx robot;
    Logger logger = LoggerFactory.getLogger(LoginService.class);
    @Autowired
    private BlueActivity blueActivity;
    public void login(Account account) throws InterruptedException {
        blueActivity.loginPrepare(account.getUsername(),account.getPassword());
        blueActivity.closeInvitation(account.getUsername());

    }

}
